
#ifndef QR_ENCODER_H
#define QR_ENCODER_H

#include "qr-const.h"
#include "ecc-adapter.h"

C_BEGIN_DECLS

typedef struct
{
	EccAdapter* _ecc_adapter;
} QREncoder;

QREncoder* qr_encoder_new();
void qr_encoder_destroy(QREncoder* qr_encoder);
int qr_encoder_simple_encode(QREncoder* qr_encoder, int version, ECLevel ec_level, QRMode mode, MaskPattern mask_pattern, unsigned char* source, int size, const char* filename);

C_END_DECLS

#endif	// QR_ENCODER_H

